package cn.edu.hyit.hjq.volunteems.backend.mapper;

import cn.edu.hyit.hjq.volunteems.backend.dto.request.RegistrationRequest;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
@Mapper
public interface RegistrationMapper {

    int countByVolunteer(@Param("volunteerId") Long volunteerId);

    void insert(
        @Param("volunteerId") Long volunteerId,
        @Param("activityId") Long activityId
    );

    RegistrationRequest findById(@Param("regId") Long regId);

    void updateQrCode(
        @Param("regId") Long regId,
        @Param("qrCode") String qrCode
    );

    List<String> findVolunteerPhoneByActivityId(@Param("activityId") Long activityId);

}
